import cookie from 'js-cookie'

export function getToken(){
   return cookie.get('mltoken')
}

export function setToken(token,time){
    return cookie.set('mltoken',token,{
        expires:new Date(Date.now()+time*1000)
    })
}

export function removeToken(){
    return cookie.remove('mltoken')
}